\hypertarget{classcontext_free_1_1grammar_1_1_grammar_factory}{\section{context\-Free.\-grammar.\-Grammar\-Factory Class Reference}
\label{classcontext_free_1_1grammar_1_1_grammar_factory}\index{context\-Free.\-grammar.\-Grammar\-Factory@{context\-Free.\-grammar.\-Grammar\-Factory}}
}


An object factory that create a correct instance of grammar.  


\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classcontext_free_1_1grammar_1_1_grammar_factory_a6829a8d168584b20ac594fae87de591a}{static \hyperlink{interfacecontext_free_1_1grammar_1_1_i_grammar}{I\-Grammar} {\bfseries create\-Context\-Free\-Grammar} (String ass, List$<$ \hyperlink{classcontext_free_1_1grammar_1_1_production}{Production} $>$ prod)}\label{classcontext_free_1_1grammar_1_1_grammar_factory_a6829a8d168584b20ac594fae87de591a}

\item 
static \hyperlink{interfacecontext_free_1_1grammar_1_1_i_grammar}{I\-Grammar} \hyperlink{classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25}{create\-Grammar} (String ass, List$<$ \hyperlink{classcontext_free_1_1grammar_1_1_production}{Production} $>$ prod, List$<$ String $>$ V, List$<$ String $>$ T)
\begin{DoxyCompactList}\small\item\em Check the type of grammar (ex. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Private Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{enumcontext_free_1_1grammar_1_1_g_r_a_m_m_a_r___t_y_p_e}{G\-R\-A\-M\-M\-A\-R\-\_\-\-T\-Y\-P\-E} \hyperlink{classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711}{check\-Type} (List$<$ \hyperlink{classcontext_free_1_1grammar_1_1_production}{Production} $>$ prod, List$<$ String $>$ V, List$<$ String $>$ T)
\begin{DoxyCompactList}\small\item\em Controls that make up the grammar productions that are valid. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
An object factory that create a correct instance of grammar. 

\begin{DoxyAuthor}{Author}
Paolo Pino 
\end{DoxyAuthor}


Definition at line 10 of file Grammar\-Factory.\-java.



\subsection{Member Function Documentation}
\hypertarget{classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711}{\index{context\-Free\-::grammar\-::\-Grammar\-Factory@{context\-Free\-::grammar\-::\-Grammar\-Factory}!check\-Type@{check\-Type}}
\index{check\-Type@{check\-Type}!contextFree::grammar::GrammarFactory@{context\-Free\-::grammar\-::\-Grammar\-Factory}}
\subsubsection[{check\-Type}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf G\-R\-A\-M\-M\-A\-R\-\_\-\-T\-Y\-P\-E} {\bf context\-Free.\-grammar.\-Grammar\-Factory.\-check\-Type} (
\begin{DoxyParamCaption}
\item[{List$<$ {\bf Production} $>$}]{prod, }
\item[{List$<$ String $>$}]{V, }
\item[{List$<$ String $>$}]{T}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static, private\mbox{]}}}}\label{classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711}


Controls that make up the grammar productions that are valid. 


\begin{DoxyParams}{Parameters}
{\em List} & of production \\
\hline
{\em list} & of Not-\/terminal symbol \\
\hline
{\em list} & of Terminal symbol \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
G\-R\-A\-M\-M\-A\-R\-\_\-\-T\-Y\-P\-E.\-N\-O\-\_\-\-C\-O\-N\-T\-E\-X\-T\-\_\-\-F\-R\-E\-E if the grammar isn't context-\/free, G\-R\-A\-M\-M\-A\-R\-\_\-\-T\-Y\-P\-E.\-C\-O\-N\-T\-E\-X\-T\-\_\-\-F\-R\-E\-E otherwise; 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Pierluigi Sottile, Paolo Pino 
\end{DoxyAuthor}


Definition at line 43 of file Grammar\-Factory.\-java.



Here is the caller graph for this function\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1grammar_1_1_grammar_factory_a513482168bb15e55211bc4f04e276711_icgraph}
\end{center}
\end{figure}


\hypertarget{classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25}{\index{context\-Free\-::grammar\-::\-Grammar\-Factory@{context\-Free\-::grammar\-::\-Grammar\-Factory}!create\-Grammar@{create\-Grammar}}
\index{create\-Grammar@{create\-Grammar}!contextFree::grammar::GrammarFactory@{context\-Free\-::grammar\-::\-Grammar\-Factory}}
\subsubsection[{create\-Grammar}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf I\-Grammar} {\bf context\-Free.\-grammar.\-Grammar\-Factory.\-create\-Grammar} (
\begin{DoxyParamCaption}
\item[{String}]{ass, }
\item[{List$<$ {\bf Production} $>$}]{prod, }
\item[{List$<$ String $>$}]{V, }
\item[{List$<$ String $>$}]{T}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}\label{classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25}


Check the type of grammar (ex. 

Context-\/free) and returns the correct instance. 
\begin{DoxyParams}{Parameters}
{\em Axioms} & \\
\hline
{\em List} & of \hyperlink{classcontext_free_1_1grammar_1_1_production}{Production} \\
\hline
{\em List} & of Not Terminal Symbol \\
\hline
{\em list} & of Terminal Symbol \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The grammar instance if is context-\/free type, null otherwise. 
\end{DoxyReturn}
\begin{DoxyAuthor}{Author}
Paolo Pino 
\end{DoxyAuthor}


Definition at line 24 of file Grammar\-Factory.\-java.



Here is the call graph for this function\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classcontext_free_1_1grammar_1_1_grammar_factory_a25d4e5bf4a9a452efca5dd6518e16c25_icgraph}
\end{center}
\end{figure}




The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
src/context\-Free/grammar/Grammar\-Factory.\-java\end{DoxyCompactItemize}
